package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.DymacIpInfo;
import com.wanlian.netty.msg.Device.model.IpInfo;
import com.wanlian.netty.msg.MsgType;

/**
 * 获取静态ip参数
 */
public class DymaicIpinfoGetReply extends BaseMsg {

    private DymacIpInfo dymacIpInfo;

    public DymaicIpinfoGetReply() {
        super();
        this.setType(MsgType.DEVICE_DYNAMICGET_REP);
    }

    public DymacIpInfo getDymacIpInfo() {
        return dymacIpInfo;
    }

    public void setDymacIpInfo(DymacIpInfo dymacIpInfo) {
        this.dymacIpInfo = dymacIpInfo;
        this.setContent(JsonStringUtil.writeValueAsString(dymacIpInfo));
    }
}
